@charset "UTF-8";
@import './varibale';
// 主题模式
@mixin themeify() {
  @each $theme-name, $theme-map in $themes {
    $theme-map: $theme-map !global;
    [theme-mode='#{$theme-name}'] & {
      @content;
    }
  }
}
// 主题色

@function themed($key) {
  @return map-get($theme-map, $key);
}

//背景色
@mixin background_color($color) {
  @include themeify {
    background-color: themed($color);
  }
}
// 页面主体背景
@mixin page_bg_color($color) {
  @include themeify {
    background: themed($color);
  }
}
// 文字
@mixin font_color($color) {
  @include themeify {
    color: themed($color);
  }
}
// 边框
@mixin border($style, $color) {
  @include themeify {
    border: 1px $style themed($color);
  }
}
@mixin border_color($color) {
  @include themeify {
    border-color: themed($color);
  }
}
// 按钮
@mixin btn_bg_color($color) {
  @include themeify {
    background: themed($color);
  }
}
// 按钮
@mixin shadow_color($color) {
  @include themeify {
    box-shadow: 0px 6px 20px 0px themed($color);
  }
}
